package com.mrdeer.user.convert;

import com.mrdeer.user.api.dto.tenant.AccountRoleDTO;
import com.mrdeer.user.api.entity.Account;
import com.mrdeer.user.api.entity.AccountRole;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/7 0007 17:34
 */
@Mapper
public interface AccountRoleConvert {

    AccountRoleConvert INSTANCE = Mappers.getMapper(AccountRoleConvert.class);

    AccountRoleDTO entity2Dto(AccountRole entity);

    AccountRole dto2Entity(Account account);

    List<AccountRoleDTO> listEntity2Dto(List<AccountRole> app);
}
